<?php 
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<script type="text/javascript">
<!--
	$(function(){
	$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
	$("#name").formValidator({onshow:"国家名称不能为空",onfocus:"国家名称不能为空"}).inputValidator({min:1,onerror:"国家名称不能为空"});
	$("#iso2_code").formValidator({onshow:"请输入国家两位字母",onfocus:"请输入国家两位字母"}).regexValidator({regexp:"^[A-Z]{2}$",onerror:"国家两位字母只能为大写字母"});
	$("#iso3_code").formValidator({onshow:"请输入国家三位字母",onfocus:"请输入国家三位字母"}).regexValidator({regexp:"^[A-Z]{3}$",onerror:"国家三位字母只能为大写字母"});
 	//$("#country_number").formValidator({onshow:"请输入国家数字代码",onfocus:"请输入国家数字代码"}).regexValidator({regexp:"^[0-9]{2,3}$",onerror:"国家数字代码只能为数字"});
 	//$("#destinationCountry").formValidator({onshow:"请输入报关运抵国代码",onfocus:"请输入报关运抵国代码"}).regexValidator({regexp:"^[0-9]{2,3}$",onerror:"报关运抵国代码只能为数字"});	 
	})
//-->
</script>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href="<?php echo U('site/region_list');?>"><em>国家列表</em></a><span>|</span>
        <a href="javascript:;" class="on"><?php if($regionInfo)echo '编辑';else echo '添加';?>国家</a>
    </div>
</div>
<div class="pad_10">
<form action="__SELF__" method="post" name="myform" id="myform">
<table cellpadding="2" cellspacing="1" class="table_form" width="100%">
	<tr>
		<th width="100">国家名称：</th>
		<td><input type="text" name="name" id="name" value="<?php echo $regionInfo['name']?>" class="input-text"></td>
	</tr>
	<tr>
		<th>国家两位字母：</th>
		<td><input type="text" name="iso2_code" id="iso2_code" value="<?php echo $regionInfo['iso2_code']?>"	size="30" class="input-text"></td>
	</tr>
	<tr>
		<th>国家三位字母：</th>
		<td><input type="text" name="iso3_code" id="iso3_code" size="30" value="<?php echo $regionInfo['iso3_code']?>" class="input-text"></td>
	</tr>
	<tr>
		<th>国家数字代码：</th>
		<td><input type="text" name="country_number" id="country_number" size="30" value="<?php echo $regionInfo['country_number']?>" class="input-text"></td>
	</tr>
	<tr>
	<th>报关运抵国代码：</th>
		<td><input type="text" name="destinationCountry" id="destinationCountry" size="30" value="<?php echo $regionInfo['destinationCountry']?>" class="input-text"></td>
	</tr>    
</table>
<div class="bk15"></div>
    <input name="dosubmit" type="submit" class="button" value="提交" id="dosubmit" />
</form>
</div>
</body>
</html> 